package com.zoro.barn.business.service.pp.business.product.dao;

import com.zoro.barn.business.service.pp.business.product.entity.BarnProduct;
import com.zoro.barn.business.service.pp.business.product.entity.BarnProductUser;
import com.zoro.barn.commons.db.annotations.MybatisMapper;
import com.zoro.barn.commons.db.annotations.NeedPage;

import java.util.List;

/**
 * @author zhaoxingwu
 */
@MybatisMapper
public interface BarnProductMapper  {

    void insert(BarnProduct product);
    int updateById(BarnProduct entity);

    @NeedPage
    List<BarnProduct> query(BarnProductUser product);

    BarnProduct selectById(String id);
}
